{% extends 'base.html' %}
{% block title %}{{album|default:"top"}}{% endblock %}

{% block content %}
<h1>Album list for {{album|default:"top"}}</h1>
<ul>
  {% for photo in photos %}
    <li>
      <a href="{% url photo.views.category_list photo.get_url %}">{{ photo.title }}<img src="{{photo.thumbnail}}"></a>	  
    </li>
  {% endfor %}
</ul>
{% endblock %}
